package test.evaluator
{
	import flash.display.Sprite;
	
	import org.kisekiproject.evaluator.Expression;
	import org.kisekiproject.evaluator.VariableExpressionStore;

	public class ExpressionStoreTest extends Sprite
	{
		public function ExpressionStoreTest()
		{
			var x:Expression;
			var v:VariableExpressionStore=new VariableExpressionStore();

			v.setVariable("a",10);
			v.setVariableExpression("x",new Expression("a+5",v));

//			x=new Expression("a+5",v);
//			trace("result: "+x.value);
			trace("res: "+v.getVariable("x"));

			v.setVariable("a",20);

			trace("res: "+v.getVariable("x"));
		}
	}
}